window.onload=function(){
    // 基于准备好的dom，初始化echarts实例
    var myChart__one = echarts.init(document.getElementById('chart__one'));
    // 指定图表的配置项和数据
    var option__one = {
        title: {
            text: '会议召开次数统计',
            left:'center',
            textStyle:{
                fontWeight:'lighter'
            }
        },
        tooltip: {},
        xAxis: {
            name:'周',
            data: ["30周","31周","32周","33周","34周"],
            axisLine:{
                lineStyle:{
                    color:'rgb(253,167,2)',
                    width:1,
                }
            },
            axisTick: {
                show:false
            }
        },
        yAxis: {
            name:'次数',
            max: '10',
            splitLine: {
                show:false,
                lineStyle: { 
                    color: '#483d8b',
                    type: 'dashed',
                    width: 1
                }
            },
            axisLine:{
                lineStyle:{
                    color:'rgb(253,167,2)',
                    width:1,
                }
            },
            axisTick: {
                show:false
            }
        },
        series: [{
            name: '次数',
            type: 'bar',
            barWidth:'35',
            data: [2, 3, 6, 5, 1],
            color:['rgb(253,167,2)']
        }]
    };

     // 基于准备好的dom，初始化echarts实例
     var myChart__second = echarts.init(document.getElementById('chart__second'));
     // 指定图表的配置项和数据
     var option__second = {
         title: {
             text: '会议签到率统计',
             left:'center',
             textStyle:{
                fontWeight:'lighter'
            }
         },
         tooltip: {},
         xAxis: {
             name:'部门',
             data: ["政工部","政工部","政工部","政工部","政工部"],
             axisLine:{
                 lineStyle:{
                     color:'rgb(174,1,253)',
                     width:1,
                 }
             },
             axisTick: {
                show:false
            }
         },
         yAxis: {
             name:'签到率',
             max:'100',
             splitLine: {
                 show:false,
                 lineStyle: { 
                     color: '#483d8b',
                     type: 'dashed',
                     width: 1
                 }
             },
             axisLine:{
                 lineStyle:{
                     color:'rgb(174,1,253)',
                     width:1,
                 }
             },
             axisLabel: {  
                show: true,  
                interval: 'auto',  
                formatter: '{value} %'  
              },  
             axisTick: {
                 show:false
             }
         },
         series: [{
             name: '签到率',
             type: 'line',
             data: [35, 50, 20, 75, 12],
             color:['rgb(174,1,253)'],
             symbol:'circle',
             symbolSize:[7,7],
         }]
     };

     // 基于准备好的dom，初始化echarts实例
    var myChart__third = echarts.init(document.getElementById('chart__third'));
    // 指定图表的配置项和数据
    var option__third = {
        title: {
            text: '上级领导来省公司调研次数统计',
            left:'center',
            textStyle:{
                fontWeight:'lighter'
            }
        },
        tooltip: {},
        xAxis: {
            name:'月份',
            data: ["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],
            axisLine:{
                lineStyle:{
                    color:'rgb(165,249,139)',
                    width:1,
                }
            },
            axisTick: {
                show:false
            }
        },
        yAxis: {
            name:'次数',
            max: '10',
            splitLine: {
                show:false,
                lineStyle: { 
                    color: '#483d8b',
                    type: 'dashed',
                    width: 1
                }
            },
            axisLine:{
                lineStyle:{
                    color:'rgb(165,249,139)',
                    width:1,
                }
            },
            axisTick: {
                show:false
            }
        },
        series: [{
            name: '次数',
            type: 'line',
            data: [1, 8, 2, 9, 1,10,2,7,4,6,9,4],
            color:['rgb(165,249,139)'],
            showSymbol:'false',
            symbol:'none',
            lineStyle: {
                normal:{
                    width:0,
                }
            },
            areaStyle: {
                normal: {
                    color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                        offset: 0,
                        color: 'rgb(165,249,139)'
                    }, {
                        offset: 1,
                        color: '#ffe'
                    }])
                }
            },
        }]
    };

     // 基于准备好的dom，初始化echarts实例
     var myChart__fourth = echarts.init(document.getElementById('chart__fourth'));
     // 指定图表的配置项和数据
     var option__fourth = {
         title: {
             text: '省公司领导到下级地市调研统计',
             left:'center',
             textStyle:{
                fontWeight:'lighter'
            }
         },
         tooltip: {},
         xAxis: {
             name:'月',
             data: ["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],
             axisLine:{
                 lineStyle:{
                     color:'rgb(1,255,246)',
                     width:1,
                 }
             },
             axisTick: {
                show:false
            }
         },
         yAxis: {
             name:'次数',
             max: '10',
             splitLine: {
                 show:false,
                 lineStyle: { 
                     color: '#483d8b',
                     type: 'dashed',
                     width: 1
                 }
             },
             axisLine:{
                 lineStyle:{
                     color:'rgb(1,255,246)',
                     width:1,
                 }
             },
             axisTick: {
                show:false
            }
         },
         series: [{
             name: '次数',
             type: 'line',
             show: 'false',
             data: [1, 7, 3, 8, 2,9,1, 7, 3, 8, 2,9],
             color:['rgb(1,255,246)'],
             showSymbol:'false',
             symbol:'none',
             lineStyle: {
                 normal:{
                     width:0,
                 }
             },
             areaStyle: {
                normal: {
                    color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                        offset: 0,
                        color: 'rgb(1,255,246)'
                    }, {
                        offset: 1,
                        color: '#ffe'
                    }])
                }
            },
         }]
     };
    // 使用刚指定的配置项和数据显示图表。
    myChart__one.setOption(option__one);
    myChart__second.setOption(option__second);
    myChart__third.setOption(option__third);
    myChart__fourth.setOption(option__fourth);
}